import request from '@/utils/request'

// 登录
export const loginApi = (data) => {
  return request({
    method: 'post',
    url: '/index/login',
    data
  })
}

// 获取个人信息
export const getUserProfileApi = () => {
  return request({
    method: 'POST',
    url: '/index/profile'
  })
}

/**
 * 文件上传
 */
export const uploadImageApi = data => {
  return request({
    method: 'post',
    url: `/common/upload?type=images`,
    data
  })
}
